package com.nit.lab.dao;

import com.nit.lab.dto.DtoLoginUser;
import com.nit.lab.model.SysUserEntity;

import java.util.List;

/**
 * Created by CYT on 2017/11/19.
 */
public interface LoginDao {
    Integer insertUserInfo(SysUserEntity sysUserEntity) throws Exception;

    boolean findUserName(String name) throws Exception;

    boolean findUserPhone(String phone) throws Exception;

    boolean findUserEmail(String email) throws Exception;

    List<DtoLoginUser> selectUser(String userName, String userCode) throws Exception;

    boolean changCode(String userEmail, String userPhone) throws Exception;
}
